<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
    <title>组织绩效管理系统</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script>
    ;
    (function (win) {
        var doc = win.document;
        var docEl = doc.documentElement;
        var tid;
  
        function refreshRem() {
            var width = docEl.getBoundingClientRect().width;
            // if (width > 540) { // 最大宽度
            //   width = 540;
            // }
            var rem = width / 7.5;
            docEl.style.fontSize = rem + 'px';
        }
  
        win.addEventListener('resize', function () {
            clearTimeout(tid);
            tid = setTimeout(refreshRem, 300);
        }, false);
        win.addEventListener('pageshow', function (e) {
            if (e.persisted) {
                clearTimeout(tid);
                tid = setTimeout(refreshRem, 300);
            }
        }, false);
  
        refreshRem();
  
    })(window);
  </script>
</html>
